window.wangEditor.zyoffice = {
    init: function(editor,w) {
        var tool = $(editor).find(" .w-e-toolbar");
    	tool.append("<div class='w-e-menu zyoffice' title='导入Word文档(docx格式)'></div>\
		<div class='w-e-menu zywordexport' title='导出Word文档(docx格式)'></div>\
		<div class='w-e-menu zyofficepdf' title='导入PDF文档'></div>");

        tool.find(".zyoffice").click(function(){
            zyOffice.getInstance().SetEditor(w).api.openDoc();
        });
		tool.find(".zywordexport").click(function(){
            zyOffice.getInstance().SetEditor(w).api.exportWord();
        });
		tool.find(".zyofficepdf").click(function(){
            zyOffice.getInstance().SetEditor(w).api.openPdf();
        });
    }
};